<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/9 0009
 * Time: 16:33
 */

namespace app\admin\model;


use app\common\model\BaseModel;
use think\Model;

class Logistics extends BaseModel
{
    const is_dis_0 = 0;  //是否支持配送   0 不支持 1支持
    const is_dis_1 = 1;

    public function findLinkLogistics($tenantDistributionId,$storeId){
        return self::where(['tenantDistributionId'=>$tenantDistributionId,'storeId'=>$storeId])->find();
    }


    public function getlogistics($param){
        return self::where(
            ['tenantDistributionId'=>
            $param['tenantDistributionId'],
                "deliverMethod"=>$param['deliverMethod']
            ])->find();
    }



}